#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QSplitter>
#include <QTextEdit>
#include <QLayout>
#include <QImage>
#include <QFile>
#include <QPalette>
#include <QIcon>
#include <QFont>
#include <QSplitter>
#include <QDebug>
#include <QPainter>
#include <QPaintEvent>
#include <QStyleOption>
#include <QApplication>
#include <QDesktopWidget>
#include <QDesktopWidget>
#include <QApplication>
#include <QRect>

#include "main_left_widget.h"
#include "main_right_widget.h"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();
    void paintEvent(QPaintEvent *event);
    void setWidgetsSize();
    void printWidgetSize();
    main_left_widget *m_main_left;
    main_right_widget *m_main_right;
private:
    QHBoxLayout *main_box;
    QSplitter *m_main_splitter;
    QImage *m_main_image;
private slots:
    void on_m_main_splitter_Moved(int pos, int index);

};

#endif // WIDGET_H
